<template>
  <div>
    <el-table :data="tableData.list" stripe style="width: 100%">
      <el-table-column prop="userName" label="用户名" ></el-table-column>
      <el-table-column prop="password" label="密码" ></el-table-column>
    </el-table>
  </div>
</template>
<script>
  export default {
    name: "user_list",
    data() {
      return {
        tableData: {
          list:[]
        }
      }
    },
    mounted:function (){
      let vm = this;
      vm.query();
    },
    methods:{
      query(){
        let vm = this;
        vm.getRequest(vm.blog_service+"/users").then(xhr=> {
          if(xhr.data.retCode!==0)return
          vm.tableData = xhr.data.data;
        })
      }
    }
  }
</script>

<style scoped>

</style>
